home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / LIB / GLSMAP / smap_nearfar.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-12  |  640 b   |  27 lines

  1.  
  2. /* Copyright (c) Mark J. Kilgard, 1998.  */
  3.  
  4. /* This program is freely distributable without licensing fees
  5.    and is provided without guarantee or warrantee expressed or
  6.    implied. This program is -not- in the public domain. */
  7.  
  8. #include "glsmapint.h"
  9.  
  10. void
  11. smapSetNearFar(SphereMap *smap,
  12.                GLfloat viewNear, GLfloat viewFar)
  13. {
  14.     /* Curse Intel for "near" and "far" keywords. */
  15.     smap->viewNear = viewNear;
  16.     smap->viewFar = viewFar;
  17. }
  18.  
  19. void
  20. smapGetNearFar(SphereMap *smap,
  21.                GLfloat *viewNear, GLfloat *viewFar)
  22. {
  23.     /* Curse Intel for "near" and "far" keywords. */
  24.         *viewNear = smap->viewNear;
  25.     *viewFar = smap->viewFar;
  26. }
  27.